import { RouteRecordRaw } from 'vue-router';
import Home from '../pages/Home.vue';
import NavBar from '../components/NavBar.vue'
import Header from '../components/Header.vue'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/login',
        component: () => import('../pages/Login.vue'),
    },
    {
        path: '/home',
        components: {
            default: Home,
            top: Header,
            nav: NavBar
        }
    }
]


export default routes;